/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-10     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

/* 判断 101 到 200 之间的素数 */

int main(int argc, char *argv[])
{
    int i = 0;
    int j = 0;
    int count = 0;

    for (i = 101; i <= 200; i++)
    {
        for (j = 2; j < i; j++)
        {
            if (i % j == 0)
            {
                break;
            }
        }

        if (j >= i)
        {
            count++;
            printf("%d ", i);
            if (count % 5 == 0)
                printf("\n");
        }
    }
    printf("\r\n");

    return 0;
}
/************************ end of time ************************/
